<template>
  <el-tabs
    v-model="activeName"
    @tab-click="handleClick"
  >
    <el-tab-pane
      label="营业报表"
      name="yybb"
    >
      <doBusinessReportForm ref="doBusinessReportForm"></doBusinessReportForm>
    </el-tab-pane>
    <!-- <el-tab-pane
      label="结算表"
      name="jsb"
    >结算表</el-tab-pane> -->
  </el-tabs>
</template>
<script>
import doBusinessReportForm from './doBusinessReportForm'
export default {
  data () {
    return {
      activeName: 'yybb'
    };
  },
  components: { doBusinessReportForm },
  methods: {
    handleClick (tab, event) {
      if (tab.label == '营业报表') {
        this.$refs.doBusinessReportForm.getReportFormData();
      }
    }
  }
};
</script>
